package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description: 菜品套餐表
 * @Author: Zonghe Wang
 * @Date: 2025/1/20 13:40
 */
@Mapper
public interface SetMealDishMapper {

    /**
     * @param ids
     * @return
     */
    List<Long> getByDishIds(List<Long> ids);

    void addBatch(List<SetmealDish> setmealDishes);

    @Select("select * from setmeal_dish where setmeal_id = #{setmealId}")
    List<SetmealDish> getBySetmealId(Long setmealId);

    void deleteBySetmealIds(List<Long> ids);
}
